Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 9 - Camera Objects / Camera Objects Reference
Data Structures


Camera Placement Structure

You use a camera placement structure to get or set information about the location and orientation of a camera. A camera placement structure is defined by the TQ3CameraPlacement data type.

typedef struct TQ3CameraPlacement {
   TQ3Point3D                 cameraLocation;
   TQ3Point3D                 pointOfInterest;
   TQ3Vector3D                upVector;
} TQ3CameraPlacement;
Field Description
cameraLocation
The location of the camera, in world-space coordinates.
pointOfInterest
The camera's point of interest (that is, the point at which the camera is aimed), in world-space coordinates.
upVector
The up-vector of the camera. A camera's up-vector specifies the orientation of the camera. This vector must be normalized and perpendicular to the viewing direction. The up-vector of a camera is mapped to the y axis of the view plane.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996